const { mergeConfig } = require('./common/vue_common_config');
const webpack = require('webpack');
module.exports = mergeConfig({
    transpileDependencies: [
        '@shadom/cluster',
        '@shadom/portal',
        '@shadom/portal-plugin-http',
        '@shadom/translator',
        '@shadom/validator',
        'ch4o',
        'c2h6o',
    ],
}, {}, (config) => {
    // element-plus 汉化
    config
        .plugin('normalModuleReplacementPlugin')
        .use(
            new webpack.NormalModuleReplacementPlugin(
                /element-plus[\/\\]lib[\/\\]locale[\/\\]lang[\/\\]en/,
                'zh-cn.js'
            )
        );
});
